@import 'styles/vars.less';

.alert {
    margin-left: 2px;
    margin-bottom: 8px;
}

.main {
    width: 100%;
    .tips {
        flex: 1;
        color: @secondary;
        display: flex;
        align-items: center;
    }
    .create {
        width: 100%;
        display: flex;
        justify-content: flex-end;
        margin-bottom: 25px;
    }

    .cards {
        display: flex;
        flex-wrap: wrap;
        width: 100%;

        .card {
            padding: 16px 0px 10px 16px;
            height: 280px;
            flex: 0 0 calc(20% - 10px);
            border: 1px solid @border;
            border-radius: 6px;
            display: flex;
            margin-right: 10px;
            margin-bottom: 12px;
            flex-direction: column;
            
            &:hover {
                border: 1px solid @primary;
            }

            .title {
                font-size: 16px;
                font-weight: 500;
                margin-bottom: 12px;
                display: flex;
                align-items: flex-end;

                .name {
                    max-width: 140px;
                }

                .df {
                    font-size: 12px;
                    margin-left: 8px;
                    color: @primary;
                }

                .sys {
                    font-size: 12px;
                    margin-left: 8px;
                    color: @secondary;
                }
            }

            .date {
                
                color: @placeholder;
            }

            .des {
                flex: 1;
                color: @secondary;
                line-height: 18px;
                font-size: 12px;
                padding-right: 12px;
                overflow: hidden;
                text-overflow: ellipsis;
                display: -webkit-box;
                -webkit-box-orient: vertical;
                -webkit-line-clamp: 9;
                word-break: break-word;
            }

            .bottom {
                display: flex;
                align-items: center;
                margin-top: 4px;

                .date {
                    flex: 1;
                    color: @placeholder;
                }
                .edit {
                    padding-left: 0px;
                }
            }
        }
    }
}